package com.pktechan.api.dao;

import com.pktechan.api.base.BaseMapper;
import com.pktechan.api.entity.CommissionBalance;
import com.pktechan.api.entity.CustBase;
import com.pktechan.api.vo.SalesCenterVO;
import org.springframework.stereotype.Repository;

/**
 * @program: cloudfloating
 * @description: 佣金持仓DAO接口
 * @author: qx.zhang
 * @create: 2021-03-05 12:51
 **/
@Repository("commissionBalanceMapper")
public interface CommissionBalanceMapper extends BaseMapper<CommissionBalance> {

    /**
     * 根据客户ID查询客户佣金持仓
     *
     * @param custId
     * @return
     */
    CommissionBalance getByCustId(Integer custId);

    /**
     * 获取销售中心详情
     *
     * @param custBase
     */
    SalesCenterVO getSalesCenterDetail(CustBase custBase);

}
